package com.zhihuiyanche.dao.shop;

import java.util.List;
import java.util.Map;

import com.zhihuiyanche.domain.Shops;

public interface ShopsDao{

	/**
	 * 添加
	 * @param Shops
	 * @return
	 */
	public void insertShops(Shops shops);
	
	/**
	 * 根据Id删除
	 * @param Shops
	 * @return
	 */
	public boolean deleteShopsById(Shops shops);
	
	/**
	 * 根据条件删除
	 * @param Shops
	 * @return
	 */
	public boolean deleteShopsByCondition(Shops shops);
	
	/**
	 * 根据Id修改
	 * @param Shops
	 * @return
	 */
	public boolean updateShopsById(Shops shops);
	
	/**
	 * 根据条件修改
	 * @param data
	 * @return
	 */
	public boolean updateShopsByCondition(Map<String,Object> data);
	
	/**
	 * 根据id查询
	 * @param Shops
	 * @return
	 */
	public Shops getShopsById(Shops shops);
	
	/**
	 * 查询所有
	 * @param Shops
	 * @return
	 */
	public List<Shops> getShopsAll(Shops shops);
	
	/**
	 * 分页查询
	 * @param Shops
	 * @return
	 */
	public List<Shops> getShopsByPage(Shops shops);
	
	/**
	 * 分页查询查询总数
	 * @param Shops
	 * @return
	 */
	public Integer getShopsByPageCount(Shops shops);
	
	/**
	 * 根据多个id查询
	 * @param Shops
	 * @return
	 */
	
	public List<Shops> getShopsByIds(Shops shops);
	
}